<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="http://static.blog.csdn.net/scripts/jquery.js"></script>
<title>Hello</title>
<script>
$(document).ready(function(){
  
  var displayFunc=function(data,status){
	  $("#result").text(JSON.stringify(data));
  };
	
  $("#btn_banner").click(function(){
	  $.post("/YJNH/wx/homepage/getBannerList",{},displayFunc);
  })
  $("#btn_snsy").click(function(){
	  $.post("/YJNH/wx/homepage/getSanNongTitleList",{},displayFunc);
  })
  $("#btn_lpcztype").click(function(){
	  $.post("/YJNH/wx/homepage/getLPCZTypes",{},displayFunc,"json");
  })
  $("#btn_rpls").click(function(){
	  $.post("/YJNH/wx/homepage/getRecommendedProducts",{},displayFunc);
  })
  $("#btn_rsls").click(function(){
	  $.post("/YJNH/wx/homepage/getRecommendedServices",{},displayFunc);
  })
  $("#btn_snlist").click(function(){
	  $.post("/YJNH/wx/sannongdongtai/getTitles",{},displayFunc);
  })
  $("#btn_sndetail").click(function(){
	  $.post("/YJNH/wx/sannongdongtai/getDetail",{id:"4266"},displayFunc);
  })
  $("#btn_search").click(function(){
	  $.post("/YJNH/wx/search/searchForProductAndService",{name:"红枣", orderBy:"score", offset:"0", limit:"10"},displayFunc);
  })
  $("#btn_sys_notice").click(function(){
	  $.post("/YJNH/wx/message/getSystemNoticeList",{orderBy:"regdate desc"},displayFunc);
  })
  $("#btn_product_detail").click(function(){
	  $.post("/YJNH/wx/product/getProductDetail",{productId:"6025"},displayFunc);
  })
  $("#btn_lpcz_product_list").click(function(){
	  $.post("/YJNH/wx/lpcz/getLPCZListByType",{lpczTypeId:"2", orderBy:"regdate", offset:"0", limit:"100"},displayFunc);
  })
  $("#btn_gwslp_product_list").click(function(){
	  $.post("/YJNH/wx/huodong/getGWSLPListByteType",{typeId:"6", orderBy:"regdate", offset:"0", limit:"100"},displayFunc);
  })
  $("#btn_addto_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/addToShoppingCart",{keyId:"6266", buyCount:"2", specId:"732"},displayFunc);
  })
  $("#btn_list_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/listShoppingCart",{},displayFunc);
  })
  $("#btn_service_detail").click(function(){
	  $.post("/YJNH/wx/service/getServiceDetail",{productId:"6311"},displayFunc);
  })
  
  $("#btn_remove_from_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/saveOperateShoppingCart",{id:"4791", keyType:"1", buyCount:"3"},displayFunc);
  })
  $("#btn_clear_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/saveOperateShoppingCart",{id:"4791", keyType:"2", buyCount:"3"},displayFunc);
  })
  $("#btn_modify_count_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/saveOperateShoppingCart",{id:"4791", keyType:"3", buyCount:"3"},displayFunc);
  })
  $("#btn_remove_obsolete_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/saveOperateShoppingCart",{id:"4791", keyType:"4", buyCount:"3"},displayFunc);
  })
  $("#btn_get_all_count_shopping_cart").click(function(){
	  $.post("/YJNH/wx/shoppingcart/getShoppingCartCount",{},displayFunc);
  })
})
</script>
</head>
<body>
	<p>你好</p>
	<button id="btn_banner">轮播列表</button>
	<button id="btn_snsy">首页三农列表</button>
	<button id="btn_lpcztype">粮票超值分类</button>
	<button id="btn_rpls">推荐产品列表</button>
	<button id="btn_rsls">推荐服务列表</button>
	<button id="btn_snlist">三农列表</button>
	<button id="btn_sndetail">三农详情</button>
	<button id="btn_search">搜索</button>
	<button id="btn_sys_notice">系统通知</button>
	<button id="btn_product_detail">商品详情</button>
	<button id="btn_service_detail">服务详情</button>
	<button id="btn_lpcz_product_list">粮票超值</button>
	<button id="btn_gwslp_product_list">购物送粮票</button>
	<button id="btn_addto_shopping_cart">添加到购物车</button>
	<button id="btn_list_shopping_cart">获取购物车列表</button>
	<button id="btn_remove_from_shopping_cart">删除购物车一项</button>
	<button id="btn_clear_shopping_cart">清空购物车</button>
	<button id="btn_modify_count_shopping_cart">更改购买数量</button>
	<button id="btn_remove_obsolete_shopping_cart">清空购物车过期项</button>
	<button id="btn_get_all_count_shopping_cart">获取购物车商品总数</button>
	
	<br/>
	<textarea rows="10" cols="60" id="result"></textarea>
	<a href="test2.html">abc</a>
	<form method="post" action="
			http://124.128.23.74:8008/group8/hm_yjnh/index.php/Webservice/Index/init">
			<input type="text" name="lastloginversion"/>
			<input type="text" name="device_sn"/>
			<input type="text" name="device_mac"/>
			<input type="submit" value="submit"/>
	</form>
	</body>
</html>